/**
 * desc: 验证码等手机号码接口
 */

import request from '@/static/uitls/request.js'


// 手机号登录、注册
const userLogin = data => {
	return request({
		url: '/api/v1/user/login',
		method: 'POST',
		data
	})
}

// 发送短信验证码
const getCode = mobile => {
	return request({
		url: '/api/v1/sms/send',
		method: 'POST',
		data:{
			mobile:mobile
		}
	})
}

module.exports = {
	userLogin,
	getCode
}
